﻿<%@ Page Title="Coastal Climbing - Routes" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="Routes.aspx.cs" Inherits="CoastalClimbing.Routes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Routes</h1>
    <br />
    <span class="tinyText">(click route for more info) - (click the header of each column to sort)</span>
    <br />
    <asp:GridView ID="grvRoutes" runat="server" AutoGenerateColumns="false" 
        ShowHeader="true" AllowSorting="true" onsorting="grvRoutes_Sorting">
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFormatString="~/Route.aspx?id={0}" DataNavigateUrlFields="ID"
                DataTextField="NAME" ControlStyle-CssClass="yellowLink" HeaderText="Name" SortExpression="NAME" />
            <asp:BoundField DataField="RATING" HeaderText="Rating" SortExpression="RATING" />
            <asp:BoundField DataField="SETTER" HeaderText="Setter" SortExpression="SETTER" />
            <asp:BoundField DataField="WALL" HeaderText="Wall" SortExpression="WALL" />
            <asp:BoundField DataField="DATESET" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date set" SortExpression="DATESET" />
            <asp:BoundField DataField="DATEEXP" DataFormatString="{0:MM/dd/yyyy}" HeaderText="Date exp" SortExpression="DATEEXP" />
        </Columns>
        <HeaderStyle ForeColor="White" />
    </asp:GridView>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
